//
//  ykTableView.m
//  ykView
//
//  Created by HuangSui on 2017/9/11.
//  Copyright © 2017年 Demo. All rights reserved.
//

#import "ykTableView.h"

@implementation ykTableView


-(NSMutableArray *)dataArray
{
    if (!_dataArray) {
        self.dataArray =[NSMutableArray array];
    }
    return _dataArray;
}
-(void)setClassName:(NSString *)className
{
    
    [self.dataArray removeAllObjects];
    if (className) {
        _className=className;
        if ([className isEqualToString:@"Type1"]) {
            
        }
        else if ([className isEqualToString:@"Type2"])
        {
        }
        else if ([className isEqualToString:@"Type3"])
        {
        }
        else if ([className isEqualToString:@"Type4"])
        {
        }
        else
        {
            [self registerClass:[NSClassFromString(className) class] forCellReuseIdentifier:className];
            
        }
    }
}
@end
